//
//  SeekoArticleViewController.h
//  MokoAPP
//
//  Created by 현식 강 on 11. 8. 1..
//  Copyright 2011 아이온. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HttpConnectionDidFinishLoadingProtocol.h"
#import "UITextViewPlaceHolder.h"

@class SeekoArticleTableViewController;
@class SeekoArticleContentWebView;
@class MemoWriteViewController;
@interface SeekoArticleViewController : UIViewController<HttpConnectionDidFinishLoadingProtocol, UIAlertViewDelegate, UITextViewDelegate, UIActionSheetDelegate> {
    IBOutlet UILabel *userLevelLabel;
    IBOutlet UILabel *userNameLabel;
    IBOutlet UIButton *deleteButton;
    IBOutlet UIButton *modifyButton;
    IBOutlet UITextViewPlaceHolder *commentContentTextView;
    IBOutlet UILabel *viewDateLabel;
    IBOutlet UILabel *backgroundColorLabel;
    IBOutlet UIButton *commentRegistrationButton;
    IBOutlet SeekoArticleContentWebView* contentWebView;
    CGRect firstCommentContentTextViewFrame;
    NSString* link;
    NSString* boardId;
    NSString* userId;
    NSString* articleNo;
    NSString* articleTitle;
    NSString* articleContent;
    NSString* articleLinks;
    NSString* articleImages;
    NSString* articleDate;
    BOOL isNoticeArticle;
    SeekoArticleTableViewController* parentController;
}
@property(nonatomic, retain) IBOutlet UILabel *userLevelLabel;
@property(nonatomic, retain) IBOutlet UILabel *userNameLabel;
@property(nonatomic, retain) IBOutlet UITextViewPlaceHolder *commentContentTextView;
@property(nonatomic, retain) IBOutlet UIButton *commentRegistrationButton;
@property(nonatomic, retain) IBOutlet UIButton *deleteButton;
@property(nonatomic, retain) IBOutlet UIButton *modifyButton;
@property(nonatomic, retain) IBOutlet SeekoArticleContentWebView *contentWebView;
@property(nonatomic, retain) IBOutlet UILabel* viewDateLabel;
@property(nonatomic, retain) NSString* userId;
@property(nonatomic, retain) NSString* link;
@property(nonatomic, retain) NSString* boardId;
@property(nonatomic, retain) NSString* articleNo;
@property(nonatomic, retain) NSString* articleTitle;
@property(nonatomic, retain) NSString* articleContent;
@property(nonatomic, retain) NSString* articleLinks;
@property(nonatomic, retain) NSString* articleImages;
@property(nonatomic, retain) NSString* articleDate;
@property(nonatomic, assign) BOOL isNoticeArticle;

-(id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil link:(NSString*)link parentController:(SeekoArticleTableViewController*)parentController;
- (IBAction)commentRegistration:(id)sender;
- (IBAction)modify:(id)sender;
- (IBAction)deleteAction:(id)sender;
- (IBAction)hideKeyboard:(id)sender;
- (void)showLoginView;
-(BOOL)canWriteComment;
@end